package com.litong.vertx.hello;


import io.vertx.core.Handler;
import io.vertx.core.http.HttpServerRequest;
import io.vertx.core.http.HttpServerResponse;

/**
 * Created by litongjava@qq.com on 2020/9/9_22:05
 */
public class HelloHandler implements Handler<HttpServerRequest> {

  @Override
  public void handle(HttpServerRequest req) {
    HttpServerResponse response = req.response();
    response.putHeader("content-type", "text/plain");
    response.end("Hello from Vert.x!");
  }
}
